
var left_top = 150,
		right_top = 150,
		float_list = [],
		float_side = 5;
$(window).load(function () {
	float_list[0] = $('#TplFloatPic_0');
	float_list[1] = $('#TplFloatPic_1');

	for (var i=0;i<float_list.length;i++) {
		
		var self = float_list[i],
			picfloat = (self.attr("picfloat") == 'right') ? 1 : 0;
			console.log()
		self.show().Float({
			'floatRight': picfloat,
			'topSide': ((picfloat == 1) ? right_top : left_top),
			side: float_side
		});

	}
});

function hide1() {
	$("#TplFloatPic_0").hide();
};

function hide2() {
	$("#TplFloatPic_1").hide();
};
document.writeln("<!-- 左悬浮 -->");
document.writeln("<ul id=\'TplFloatPic_0\' class=\'TplFloatSet\' style=\'width: 153px;height:441px;background:url(images/layer_box.png)\'");
document.writeln("	 picfloat=\'left\'>");
document.writeln("");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>一级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>二级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>三级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>四级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>五级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>六级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a onclick=\'hide1();\' class=\'closes\'>");
document.writeln("				X 关闭");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("	</ul>");
document.writeln("	<!-- 右悬浮 -->");
document.writeln("	<ul id=\'TplFloatPic_1\' class=\'TplFloatSet\' style=\'width: 153px;height:441px;background:url(images/layer_box.png)\'");
document.writeln("	 picfloat=\'right\'>");
document.writeln("");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>一级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>二级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>三级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>四级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>五级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a href=\'#\'>");
document.writeln("				<h3>六级域名</h3>");
document.writeln("				<p>bifa.com</p>");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("		<li>");
document.writeln("			<a onclick=\'hide2();\' class=\'closes\'>");
document.writeln("				X 关闭");
document.writeln("			</a>");
document.writeln("		</li>");
document.writeln("	</ul>");